﻿using ManageSystem.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ManageSystem.IService
{
    public interface IIncomeStreamService: IBaseService<IncomeStream>
    {
        public Task<List<IncomeStream>> QueryIncomeStreamByProjectGuid(string projectGuid);

        // 添加或者更新、删除收入流水时，对项目的已到账、未到账金额和落地机构、合作方的分成进行处理
        public Task<Project> DealWithIncomeStreamsOfProject(IncomeStream incomeStream, Project projectToBeUpdated, string mode);

        // 删除项目时删除与其相关的收入流水
        public Task<int> DeleteIncomeStreamByProjectGuid(string projectGuid);
    }
}
